package com.woniuxy.autowire;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author: 马宇航
 * @Todo: 测试自动注入是否成功
 * @DateTime: 01/18/0018 下午 5:13
 * @Component: 成都蜗牛学苑
 **/
public class AutowireTest {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext1.xml");
        Man man = applicationContext.getBean("man", Man.class);
        System.out.println(man);
    }
}
